package io.jnet.server.util;

import io.jnet.server.api.ServerChannelContext;

public class ProcessorTask
{
    private Object               data;
    private ServerChannelContext serverChannelContext;
    private int                  initIndex;
    
    public ProcessorTask(Object data, int initIndex, ServerChannelContext serverChannelContext)
    {
        this.data = data;
        this.initIndex = initIndex;
        this.serverChannelContext = serverChannelContext;
    }
    
    public int getInitIndex()
    {
        return initIndex;
    }
    
    public void setInitIndex(int initIndex)
    {
        this.initIndex = initIndex;
    }
    
    public Object getData()
    {
        return data;
    }
    
    public void setData(Object data)
    {
        this.data = data;
    }
    
    public ServerChannelContext getServerChannelContext()
    {
        return serverChannelContext;
    }
    
    public void setServerChannelContext(ServerChannelContext serverChannelContext)
    {
        this.serverChannelContext = serverChannelContext;
    }
    
}
